package com.mixcus.server.dao;

import com.mixcus.server.dto.UserDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserDao {
    String getPassword(@Param("userName") String userName);

    //查询用户名是否存在
    int hasUserName(@Param("userName") String userName);

    Character getUserRole(@Param("userName") String userName);

    void addUser(@Param("user") UserDto userDto);
}
